<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动_练习</title>
    <style>
        .outer {
            width: 500px;
            background-color: grey;
            border: black solid 1px;
        }
        .inner {
            border: black solid 1px;
            margin: 10px;
            background-color: skyblue;
            width: 100px;
            width: 200px;/*练习4*/
            height: 100px;
            height: 200px;/* 练习4 */
            /* 练习3 因为都浮动 导致父元素没有了高度 */
            float: left;
        }
        .inner1 {
            /* 练习1 */
            /*float: right;*/
            /* 练习2 */
            /*float: left;*/
            /* 练习5 */
            height: 230px;

        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner inner1">1</div>
        <div class="inner inner2">2</div>
        <div class="inner inner3">3</div>
    </div>
</body>
</html>